<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8"/>
    <title>美食分享平台首页</title>
    <link rel="stylesheet" th:href="@{/css/style.css}"/>
    <link rel="shortcut icon" href="../resources/favicon.ico" th:href="@{/static/favicon.ico}"/>
</head>

<body class="pg">
<div class="page" id="app" >
    <div id="mallPage" class=" mallist tmall- page-not-market ">

        <!-- 头部搜索 -->
        <div id="header" class=" header-list-app">
            <div class="headerLayout">
                <div class="headerCon ">
                    <!-- Logo-->
                    <h1 id="mallLogo">
                        <img th:src="@{/img/jdlogo.png}" alt="">
                    </h1>

                    <div class="header-extra">

                        <!--搜索-->
                        <div id="mallSearch" class="mall-search">
                            <ul class="relKeyTop">
                                <li><a th:href="@{/login.html}">登录</a></li>
                                <li><a th:href="@{/register.html}">注册</a></li>
                            </ul>
                           <!-- <ul class="relKeyTop">
                                <li th:text="欢迎${session.user.username}登录"></li>
                                <li><a th:href="@{/user/logout}">注销</a></li>
                            </ul>-->
                            <form name="searchTop" class="mallSearch-form clearfix">
                                <fieldset>
                                    <legend>美食搜索</legend>
                                    <div class="mallSearch-input clearfix">
                                        <div class="s-combobox" id="s-combobox-685">
                                            <div class="s-combobox-input-wrap">
                                                <input v-model="name" type="text" autocomplete="off" value="dd" id="mq"
                                                       class="s-combobox-input" aria-haspopup="true">
                                            </div>
                                        </div>
                                        <button type="submit" @click.prevent="searchKey" id="searchbtn">搜索</button>
                                    </div>
                                </fieldset>
                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 商品详情页面 -->
        <div id="content">
            <div class="main">
                <!-- 商品详情 -->
                <div class="view grid-nosku">

                    <div class="product">
                        <div class="product-iWrap" >
                            <!--商品封面-->
                            <div class="productImg-wrap">
                                <a class="productImg">
                                    <img src="https://p0.meituan.net/bbia/053a90bd6d27222aca6012e9f50b82db81093.jpg@380w_214h_1e_1c">
                                </a>
                            </div>
                            <!--价格-->
                            <p class="productPrice">
                                <em th:text=""></em>
                            </p>
                            <!--标题-->
                            <p class="productTitle">
                                <a>{{result.name}}</a>
                            </p>
                            <!-- 店铺名 -->
                            <div class="productShop">
                                <span>{{result.content1}}</span>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--前端使用vue，实现前后端分离-->
<script th:src="@{/js/axios.min.js}"></script>
<script th:src="@{/js/vue.js}"></script>
</body>
</html>